<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ include file="/base/base.jsp"%>
<%@ include file="/base/database.jsp"%>

	<%
		String depID=request.getParameter("depID");
		
		String sql="delete  from sys_department where depID=?";
		
		Connection conn=getConn();
		PreparedStatement pstmt=conn.prepareStatement(sql);
		
		int parameterIndex=1;
		pstmt.setString(parameterIndex,depID);
		
		int count=pstmt.executeUpdate();
		
		close(pstmt,conn);
		
		process(request,response,"department_list.jsp");
		
	%>
